package cn.cheln.support.format;

import android.content.Context;
import android.provider.Settings.System;
import android.text.format.DateFormat;
import cn.cheln.support.log.Logs;
import java.util.Date;

public class HourFormatter
{
  public static String hourFormat;

  public static String showFormattedDate(Date paramDate, Context paramContext)
  {
    String str1;
    int i;
    label90: String[] arrayOfString;
    StringBuilder localStringBuilder;
    if (paramDate == null)
      str1 = null;
    do
    {
      return str1;
      if (paramContext == null)
        Logs.i("context = " + paramContext);
      if (hourFormat == null)
        hourFormat = Settings.System.getString(paramContext.getContentResolver(), "time_12_24");
      str1 = DateFormat.format("yyyy-MM-dd hh:mm", paramDate).toString();
    }
    while ((hourFormat != null) && (!(hourFormat.contains("12"))));
    if (paramDate.getHours() < 13)
    {
      i = 2131034293;
      String str2 = paramContext.getString(i);
      arrayOfString = str1.split(" ");
      localStringBuilder = new StringBuilder(String.valueOf(arrayOfString[0])).append(" ").append(str2).append(" ");
      if (!(arrayOfString[1].startsWith("0")))
        break label175;
    }
    for (String str3 = arrayOfString[1].substring(1); ; str3 = arrayOfString[1])
    {
      return str3;
      i = 2131034294;
      label175: break label90:
    }
  }
}

/* Location:           H:\360云盘\lewa_explorer_3.0\bin\FileApp_orig_dex2jar.jar
 * Qualified Name:     cn.cheln.support.format.HourFormatter
 * JD-Core Version:    0.5.2
 */